package spittr.data;

import spittr.Spittle;

import java.util.List;

/**
 *
 * @author Sean.Y.Du
 * @date 2018/3/15
 */
public interface SpittleRepository {
    List<Spittle> findRecentSpittles();

    List<Spittle> findSpittles(long max, int count);

    Spittle findOne(long id);

    void save(Spittle spittle);
}
